From: Debian LibreOffice Maintainers Date: Wed, 18 Dec 2024 16:10:23 +0000 (+0100) Subject: riscv-disable-NaN-test X-Git-Tag: archive/raspbian/4%24.8.4-1+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/%22stanciumarius94%40gmail.com//%22mailto:i18n-csb%40linuxcsb.org/%22/%22http:/www.example.com/%22stanciumarius94%40gmail.com/%22mailto:i18n-csb%40linuxcsb.org/%22?a=commitdiff_plain;h=72299fae86717bd81171025e1681b4aeffb8a2d6;p=libreoffice.git riscv-disable-NaN-test Gbp-Pq: Name riscv-disable-NaN-test.diff --- diff --git a/sal/qa/rtl/math/test-rtl-math.cxx b/sal/qa/rtl/math/test-rtl-math.cxx index 7e28356f625..ee921ed2449 100644 --- a/sal/qa/rtl/math/test-rtl-math.cxx +++ b/sal/qa/rtl/math/test-rtl-math.cxx @@ -666,6 +666,7 @@ public: CPPUNIT_ASSERT(std::isnan(res)); } +#ifndef __riscv void test_payloadNaN() { // Test that a quiet NaN payload is propagated and behaves as we // expect. Ideally that could be done with a constexpr in @@ -688,6 +689,7 @@ public: 0xbeef == reinterpret_cast(&fVal3)->nan_parts.fraction_lo || 0xdead == reinterpret_cast(&fVal3)->nan_parts.fraction_lo); } +#endif CPPUNIT_TEST_SUITE(Test); CPPUNIT_TEST(test_stringToDouble_good); @@ -703,7 +705,9 @@ public: CPPUNIT_TEST(test_acosh); CPPUNIT_TEST(test_asinh); CPPUNIT_TEST(test_atanh); +#ifndef __riscv CPPUNIT_TEST(test_payloadNaN); +#endif CPPUNIT_TEST_SUITE_END(); };